import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    currentCity: {"id": 1, "spell": "beijing", "name": "北京"}
  },
  mutations: {
    setCity(state,obj) {
      state.currentCity = obj
    }
  },
  actions: {
  },
  modules: {
  }
})
